<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪类</title>
    <style>
        /* td:first-child{
            color: red;
        } */

        td:last-child{
            color: rgb(84, 16, 232);
        }

        /* td:nth-child(1){
            color: aquamarine;
        } */

        /* td:nth-of-type(1){
            color: red;
        } */

        tr:nth-child(odd){
            background-color: #ccc;
        }

        tr:nth-child(even){
            background-color: bisque;
        }
    </style>
</head>
<body>

    <table width="500px" border="1">
        <tr>
            <!-- <th>1-0</th> -->
            <td>1-1</td>
            <td>1-2</td>
            <td>1-3</td>
            <td>1-4</td>
        </tr>
        <tr>
            <td>2-1</td>
            <td>2-2</td>
            <td>2-3</td>
            <td>2-4</td>
        </tr>
        <tr>
            <td>3-1</td>
            <td>3-2</td>
            <td>3-3</td>
            <td>3-4</td>
        </tr>
    </table>
    
</body>
</html>